﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class Trapezoidal.Instance
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class Trapezoidal.Instance
   ">
    <meta name="generator" content="docfx 2.52.0.0">
    
    <link rel="shortcut icon" href="../api/images/favicon.ico">
    <link rel="stylesheet" href="../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../styles/docfx.css">
    <link rel="stylesheet" href="../styles/main.css">
    <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> 
    <meta property="docfx:navrel" content="../toc.html">
    <meta property="docfx:tocrel" content="toc.html">
    <script type="text/javascript" async="" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML"></script>
    
    
    
  </head>  <body data-spy="scroll" data-target="#affix" data-offset="120">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../index.html">
                <img id="logo" class="svg" src="../api/images/favicon.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="SpiceSharp.Simulations.IntegrationMethods.Trapezoidal.Instance">
  
  
  <h1 id="SpiceSharp_Simulations_IntegrationMethods_Trapezoidal_Instance" data-uid="SpiceSharp.Simulations.IntegrationMethods.Trapezoidal.Instance" class="text-break">Class Trapezoidal.Instance
  </h1>
  <div class="markdown level0 summary"><p>An <a class="xref" href="SpiceSharp.Simulations.IIntegrationMethod.html">IIntegrationMethod</a> that implements the trapezoidal method.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><span class="xref">System.Object</span></div>
    <div class="level1"><a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html">SpiceMethod.SpiceInstance</a></div>
    <div class="level2"><span class="xref">Trapezoidal.Instance</span></div>
  </div>
  <div classs="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.IBreakpointMethod.html">IBreakpointMethod</a></div>
    <div><a class="xref" href="SpiceSharp.Simulations.IIntegrationMethod.html">IIntegrationMethod</a></div>
    <div><a class="xref" href="SpiceSharp.Simulations.ISimulationState.html">ISimulationState</a></div>
  </div>
  <div class="inheritedMembers">
    <h5>Inherited Members</h5>
    <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_GetPreviousSolution_System_Int32_">SpiceMethod.SpiceInstance.GetPreviousSolution(Int32)</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_GetPreviousTimestep_System_Int32_">SpiceMethod.SpiceInstance.GetPreviousTimestep(Int32)</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_RegisterState_SpiceSharp_Simulations_IIntegrationState_">SpiceMethod.SpiceInstance.RegisterState(IIntegrationState)</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Prepare">SpiceMethod.SpiceInstance.Prepare()</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Probe">SpiceMethod.SpiceInstance.Probe()</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Accept">SpiceMethod.SpiceInstance.Accept()</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Reject">SpiceMethod.SpiceInstance.Reject()</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Evaluate_System_Double_">SpiceMethod.SpiceInstance.Evaluate(Double)</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Truncate_System_Double_">SpiceMethod.SpiceInstance.Truncate(Double)</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Delta">SpiceMethod.SpiceInstance.Delta</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_State">SpiceMethod.SpiceInstance.State</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_States">SpiceMethod.SpiceInstance.States</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_RegisteredStates">SpiceMethod.SpiceInstance.RegisteredStates</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_TruncatableStates">SpiceMethod.SpiceInstance.TruncatableStates</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Breakpoints">SpiceMethod.SpiceInstance.Breakpoints</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Break">SpiceMethod.SpiceInstance.Break</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_MaxOrder">SpiceMethod.SpiceInstance.MaxOrder</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Order">SpiceMethod.SpiceInstance.Order</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_BaseTime">SpiceMethod.SpiceInstance.BaseTime</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Time">SpiceMethod.SpiceInstance.Time</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Slope">SpiceMethod.SpiceInstance.Slope</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Prediction">SpiceMethod.SpiceInstance.Prediction</a>
    </div>
    <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Parameters">SpiceMethod.SpiceInstance.Parameters</a>
    </div>
    <div>
      <span class="xref">System.Object.ToString()</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.GetHashCode()</span>
    </div>
    <div>
      <span class="xref">System.Object.GetType()</span>
    </div>
    <div>
      <span class="xref">System.Object.MemberwiseClone()</span>
    </div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.html">SpiceSharp.Simulations.IntegrationMethods</a></h6>
  <h6><strong>Assembly</strong>: SpiceSharp.dll</h6>
  <h5 id="SpiceSharp_Simulations_IntegrationMethods_Trapezoidal_Instance_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected class Instance : SpiceMethod.SpiceInstance, IBreakpointMethod, IIntegrationMethod, ISimulationState</code></pre>
  </div>
  <h3 id="constructors">Constructors
  </h3>
  <a id="SpiceSharp_Simulations_IntegrationMethods_Trapezoidal_Instance__ctor_" data-uid="SpiceSharp.Simulations.IntegrationMethods.Trapezoidal.Instance.#ctor*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_Trapezoidal_Instance__ctor_SpiceSharp_Simulations_IntegrationMethods_Trapezoidal_SpiceSharp_Simulations_IBiasingSimulationState_" data-uid="SpiceSharp.Simulations.IntegrationMethods.Trapezoidal.Instance.#ctor(SpiceSharp.Simulations.IntegrationMethods.Trapezoidal,SpiceSharp.Simulations.IBiasingSimulationState)">Instance(Trapezoidal, IBiasingSimulationState)</h4>
  <div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.Trapezoidal.Instance.html">Trapezoidal.Instance</a> class.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Instance(Trapezoidal parameters, IBiasingSimulationState state)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.Trapezoidal.html">Trapezoidal</a></td>
        <td><span class="parametername">parameters</span></td>
        <td><p>The parameters.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="SpiceSharp.Simulations.IBiasingSimulationState.html">IBiasingSimulationState</a></td>
        <td><span class="parametername">state</span></td>
        <td><p>The biasing simulation state.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
  </h3>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_Trapezoidal_Instance_Coefficients" data-uid="SpiceSharp.Simulations.IntegrationMethods.Trapezoidal.Instance.Coefficients">Coefficients</h4>
  <div class="markdown level1 summary"><p>The integration coefficients.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected readonly double[] Coefficients</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span>[]</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
  </h3>
  <a id="SpiceSharp_Simulations_IntegrationMethods_Trapezoidal_Instance_ComputeCoefficients_" data-uid="SpiceSharp.Simulations.IntegrationMethods.Trapezoidal.Instance.ComputeCoefficients*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_Trapezoidal_Instance_ComputeCoefficients" data-uid="SpiceSharp.Simulations.IntegrationMethods.Trapezoidal.Instance.ComputeCoefficients">ComputeCoefficients()</h4>
  <div class="markdown level1 summary"><p>Computes the integration coefficients.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected override void ComputeCoefficients()</code></pre>
  </div>
  <h5 class="overrides">Overrides</h5>
  <div><a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_ComputeCoefficients">SpiceMethod.SpiceInstance.ComputeCoefficients()</a></div>
  <a id="SpiceSharp_Simulations_IntegrationMethods_Trapezoidal_Instance_CreateDerivative_" data-uid="SpiceSharp.Simulations.IntegrationMethods.Trapezoidal.Instance.CreateDerivative*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_Trapezoidal_Instance_CreateDerivative_System_Boolean_" data-uid="SpiceSharp.Simulations.IntegrationMethods.Trapezoidal.Instance.CreateDerivative(System.Boolean)">CreateDerivative(Boolean)</h4>
  <div class="markdown level1 summary"><p>Creates a state with a derivative.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public override IDerivative CreateDerivative(bool track = true)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">track</span></td>
        <td><p>if set to <code>true</code>, the integration method will use this state to limit truncation errors.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.Simulations.IDerivative.html">IDerivative</a></td>
        <td><p>The derivative.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="overrides">Overrides</h5>
  <div><a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_CreateDerivative_System_Boolean_">SpiceMethod.SpiceInstance.CreateDerivative(Boolean)</a></div>
  <a id="SpiceSharp_Simulations_IntegrationMethods_Trapezoidal_Instance_Initialize_" data-uid="SpiceSharp.Simulations.IntegrationMethods.Trapezoidal.Instance.Initialize*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_Trapezoidal_Instance_Initialize" data-uid="SpiceSharp.Simulations.IntegrationMethods.Trapezoidal.Instance.Initialize">Initialize()</h4>
  <div class="markdown level1 summary"><p>Initializes the integration method using the allocated biasing state.
At this point, all entities should have received the chance to allocate and register integration states.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public override void Initialize()</code></pre>
  </div>
  <h5 class="overrides">Overrides</h5>
  <div><a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Initialize">SpiceMethod.SpiceInstance.Initialize()</a></div>
  <a id="SpiceSharp_Simulations_IntegrationMethods_Trapezoidal_Instance_Predict_" data-uid="SpiceSharp.Simulations.IntegrationMethods.Trapezoidal.Instance.Predict*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_Trapezoidal_Instance_Predict" data-uid="SpiceSharp.Simulations.IntegrationMethods.Trapezoidal.Instance.Predict">Predict()</h4>
  <div class="markdown level1 summary"><p>Probes a new timepoint.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected override void Predict()</code></pre>
  </div>
  <h5 class="overrides">Overrides</h5>
  <div><a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html#SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Predict">SpiceMethod.SpiceInstance.Predict()</a></div>
  <h3 id="implements">Implements</h3>
  <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.IBreakpointMethod.html">IBreakpointMethod</a>
  </div>
  <div>
      <a class="xref" href="SpiceSharp.Simulations.IIntegrationMethod.html">IIntegrationMethod</a>
  </div>
  <div>
      <a class="xref" href="SpiceSharp.Simulations.ISimulationState.html">ISimulationState</a>
  </div>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="SpiceSharp.Utility.html#SpiceSharp_Utility_ThrowIfNull__1___0_System_String_">Utility.ThrowIfNull&lt;T&gt;(T, String)</a>
  </div>
  <h3 id="seealso">See Also</h3>
  <div class="seealso">
      <div><a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html">SpiceMethod.SpiceInstance</a></div>
  </div>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            
            <span>Generated by <strong>DocFX</strong></span>
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../styles/docfx.js"></script>
    <script type="text/javascript" src="../styles/main.js"></script>
  </body>
</html>
